const baseCat={type:'cat',legs:4}
const cat=Object.create(baseCat);
cat.name='???';

const cat2=Object.setPrototypeOf({name:'!!!!'},baseCat)
console.log(cat.legs);